package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.common.UserPageInfo;
import com.itheima.dto.OrderDto;
import com.itheima.pojo.Order;
import com.itheima.vo.PageOrderVo;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

@Transactional
public interface OrderService {

    PageInfo<Order> page(String number, LocalDateTime beginTmie, LocalDateTime endTime, Integer page, Integer pageSize);

    boolean updateStatus(String id, int status);

    boolean ClientSubmit(OrderDto orderDto);

    UserPageInfo<PageOrderVo> userPage(Integer page, Integer pageSize);
}
